<?php
/**
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
global $base_url;
global $theme_path;


$arrObjView = $view->result;

$objRevista = $arrObjView[0];

$strUriImagem       = $objRevista->field_field_image[0]['rendered']['#item']['uri'];
$strImagem          = image_style_url('medium', $strUriImagem);

$strUrl = drupal_get_path_alias('node/'.$objRevista->nid);
?>
<div class="social-group">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h1>Acompanhe-nos na rede</h1>
                <div class="col-md-3">
                    <div class="social-tt">
                        <a href="https://www.facebook.com/QGDIOficial" target="_blank">
                            <img src="<?php print $base_url ."/". $theme_path?>/images/btn-facebook.jpg" alt="">
                        </a>
                        <iframe src="//www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/QGDIOficial&amp;width=345&amp;height=258&amp;colorscheme=light&amp;show_faces=true&amp;header=false&amp;stream=false&amp;show_border=false&amp;appId=703236069706211" style="border:none; margin-top:10px; overflow:hidden; width:100%; height:250px;" ></iframe>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="social-tt">
                        <a href="http://instagram.com/qgdioficial" target="_blank">
                            <img src="<?php print $base_url ."/". $theme_path?>/images/btn-instagram.jpg" alt="">
                        </a>
                        <!-- SnapWidget -->
                        <iframe src="http://snapwidget.com/in/?u=cWdkaW9maWNpYWx8aW58MTI1fDN8M3x8bm98NXxub25lfG9uU3RhcnR8eWVzfG5v&ve=101014" title="Instagram Widget" class="snapwidget-widget" allowTransparency="true" frameborder="0" scrolling="no" style="border:none; overflow:hidden; width:100%; height:250px;"></iframe>
                    </div>
                </div>

                <div class="col-md-3">
                    <div class="social-tt">
                        <img src="<?php print $base_url ."/". $theme_path?>/images/btn-revista.jpg" alt="">
                        <a href="<?= $strUrl ?>"><img src="<?= $strImagem ?>" id="imgRevista" class="imgRevista" /></a>
                    </div>
                </div>

                <div class="col-md-3">
                    <div class="social-tt">
                        <a href="https://twitter.com/qgdi"><img src="<?php print $base_url ."/". $theme_path?>/images/btn-twitter.jpg" alt=""></a>
                    </div>
                    <div class="social-tt">
                        <a href="https://www.youtube.com/user/qgditv"><img src="<?php print $base_url ."/". $theme_path?>/images/btn-youtube.jpg" alt=""></a>
                    </div>
                    <div class="social-tt">
                        <img src="<?php print $base_url ."/". $theme_path?>/images/btn-pinterest.jpg" alt="">
                    </div>
                    <div class="social-tt">
                        <img src="<?php print $base_url ."/". $theme_path?>/images/btn-linkedin.jpg" alt="">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>